"""BookManage URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, re_path
from app01.views import *

urlpatterns = [
    # path('admin/', admin.site.urls),
    re_path("^$", book_list, name="book_list"),
    re_path("book_delete/(?P<id>\d+)", book_delete, name="book_delete"),
    re_path("book_add/", Bookadd.as_view(), name="book_add"),
    re_path("book_change/(?P<id>\d+)", Bookchange.as_view(), name="book_change"),
    re_path("auther_list/", auther_list, name="auther_list"),
    re_path("auther_delete/(?P<id>\d+)", auther_delete, name="auther_delete"),
    re_path("auther_add/", Authadd.as_view(), name="auther_add"),
    re_path("auther_change/(?P<id>\d+)", Authchange.as_view(), name="auther_change"),

    re_path("publish_list/", publish_list, name="publish_list"),
    re_path("publish_delete/(?P<id>\d+)", publish_delete, name="publish_delete"),
    re_path("publish_add/", Publishadd.as_view(), name="publish_add"),
    re_path("publish_change/(?P<id>\d+)", Publishchange.as_view(), name="publish_change"),

]
